package com.mms.entity;

/**
 * InvitationId entity. @author MyEclipse Persistence Tools
 */

public class InvitationId implements java.io.Serializable {

    // Fields

    private Staff staff;
    private Meeting meeting;

    // Constructors

    /** default constructor */
    public InvitationId() {
    }

    /** full constructor */
    public InvitationId(Staff staff, Meeting meeting) {
        this.staff = staff;
        this.meeting = meeting;
    }

    // Property accessors

    public Staff getStaff() {
        return this.staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }

    public Meeting getMeeting() {
        return this.meeting;
    }

    public void setMeeting(Meeting meeting) {
        this.meeting = meeting;
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof InvitationId))
            return false;
        InvitationId castOther = (InvitationId) other;

        return ((this.getStaff() == castOther.getStaff()) || (this.getStaff() != null && castOther.getStaff() != null && this.getStaff().equals(castOther.getStaff())))
                && ((this.getMeeting() == castOther.getMeeting()) || (this.getMeeting() != null && castOther.getMeeting() != null && this.getMeeting().equals(
                        castOther.getMeeting())));
    }

    public int hashCode() {
        int result = 17;

        result = 37 * result + (getStaff() == null ? 0 : this.getStaff().hashCode());
        result = 37 * result + (getMeeting() == null ? 0 : this.getMeeting().hashCode());
        return result;
    }

}